import REQUEST_CONST from '../const.js'
const requstInterceptor = (requestData)=>{
	// 这里对请求的参数做统一处理 比如加密、默认值配置 head等
	requestData.url = `${REQUEST_CONST.BASE_URL}/${requestData.url}`
	const defaultConfig = {
		timeout:60000,
	}
	return {
		...defaultConfig,
		...requestData
	}
}

export default requstInterceptor